package com.wing.product.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.common.utils.JsonResult;
import com.wing.contract.model.request.WarehouseContractForm;
import com.wing.product.model.entity.WarehouseSettledEntity;
import com.wing.product.model.request.WarehouseSettledForm;
import com.wing.product.model.response.WarehouseSettledContractVO;
import com.wing.product.model.response.WarehouseSettledVO;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface WarehouseSettledService extends IService<WarehouseSettledEntity> {
    Page<WarehouseSettledVO> pageList4app(Page page, Map<String, Object> params);

    boolean save(WarehouseSettledForm warehouseSettledForm) throws ParseException;

    boolean examine(WarehouseContractForm warehouseContractForm);

    JsonResult updateStatus(Long id, Integer status);

    WarehouseSettledContractVO info(Long id);

    List<WarehouseSettledEntity> findAllContactByFactoryId(String factoryId, Long warehouseCustomerId);
}
